package com.cn.algorithm02.class03;

/***
 * @author: hels
 * @description: 求一个数二进制中最右边的1的数
 **/
public class C03_Right1 {
    public static void main(String[] args) {
        int c = 52;
        System.out.println(Integer.toBinaryString(c));
        System.out.println((c & (-c)));


        System.out.println("======");
        int a= 5;
        System.out.println(~a);
        int b = -5;
        System.out.println((~b)+1);
        String s = Integer.toBinaryString(8);
        System.out.println(s);

    }
}
